package edu.suda.xsap.mapper;

import edu.suda.xsap.entity.Employee;
import edu.suda.xsap.entity.vo.LoginVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    void delete(Integer id);
    List<Employee> findAll();
    Employee findById(Integer id);
    void save(Employee employee);
    void update(Employee employee);
    List<Employee> findByLimit(@Param("limit") Integer limit, @Param("offset") Integer offset);
    Integer findCount();
    String findByPhone(String phone);
    Integer findIsDelete(String phone);
    void changeIsDelete(String phone);
    Integer findIdByPhone(String phone);

    String findByPhone1(String phone);



}
